using UnityEngine;
using System;
using System.Collections;

public class SessionEndScreen : MonoBehaviour {
	
	public GUIStyle blankStyle;
	public Texture logo;
	
    void OnGUI()
    {
		GUI.Button(new Rect(0, 50, 160, 45), logo, blankStyle);
        if (GUI.Button(new Rect(10, 100, 200, 30), "Back to Case Selection"))
        {
            ReturnToCaseScenarios();
        }

        if (GUI.Button(new Rect(10, 150, 200, 30), "Logout"))
        {
            ExitSystem();
        }
    }
	
	public void ReturnToCaseScenarios()
        {
            Application.LoadLevel(1);
        }
	
	public void ExitSystem()
        {
            // save the current time
            InternalComponents.m_strTimeFinish = DateTime.Now.ToString("HH:mm");

            // go to the login screen
            Application.LoadLevel(0);
        }
}
